package com.supinfo.suptracking.dao;

import com.supinfo.suptracking.entity.Car;
import com.supinfo.suptracking.entity.Zone;
import java.util.Date;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author Fabien, Jérémy, Ludovic, Brice
 */

@Local
public interface ZoneDao {
    
    void addZone(Zone zone);
    List<Zone> getZoneByPosition(String latitude, String longitude);
    List<Zone> getAllZoneByCar(Car car);
    List<Zone> getAllZone();
    List<Zone> getAllZonebyRadiusMeter(Long radiusMeter);
    List<Zone> getAllZoneByTimeStamp(Date lowTimestamp, Date highTimeStamp);
    Zone getZoneById(Long id);
    void updateZone(Zone zone);
    void delZone(Zone zone);
}
